<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2018/5/21
 * Time: 14:44
 */

namespace app\api\model;


class SpecialColumn extends BaseModel
{
    protected $hidden = ['sm_pic','create_time','delete_time','update_time'];
    public function getContent()
    {
        return $this -> hasMany('SpecialContent','cid','id');
    }
    
    public static function getSpecialByID($id)
    {
        $result = self::with('getContent')->find($id);
        return $result;
    }
}